<template>
  <div class="content">
    <div class="content-top">
      企业管理_我的企业
    </div>
    <div class="info-box info-box-t">
      <div class="info-title">基础信息</div>
      <div class="info-content">
        <div>企业编码：110102</div>
        <div>企业名称：110102</div>
        <div>企业地址：110102</div>
        <div>联系人：110102</div>
        <div>联系电话：110102</div>
      </div>
    </div>
    <div class="info-box">
      <div class="info-title">开户信息</div>
      <div class="info-content">
        <div>开户行：110102</div>
        <div>开户姓名：110102</div>
        <div>银行账户：110102</div>
      </div>
    </div>
    <div class="info-btn">
      <el-button type="warning" @click='edit'><i class="el-icon-edit"></i>修改信息</el-button>
    </div>
    <template v-if="is_edit">
      <div class="all-screen"></div>
      <div class='MyCompanyInfoEdit'>
      <MyCompanyInfoEdit @saveEdit='saveEdit'></MyCompanyInfoEdit>
      </div>
    </template>


  </div>
</template>

<script>
  import MyCompanyInfoEdit from '@/components/company/MyCompanyInfoEdit.vue';
  export default{
    components:{
      MyCompanyInfoEdit:MyCompanyInfoEdit
    },
    data(){
      return{
        is_edit:false
      }
    },
    methods:{
      edit(){
        this.is_edit = true;
      },
      saveEdit(){
        this.is_edit = false;
      }
    }
  }
  import '@/assets/css/common.css';

</script>
<style>
  .MyCompanyInfoEdit{
    z-index: 9999;
    background-color: #fff;
    border-radius: 4px;
    width: 670px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -229px;
    margin-top: -350px;
  }
  .info-box{
    margin-top: 40px;
    float: left;
    margin-left: 24px;
  }
  .info-box-t{
    margin-left: 30px;
  }
  .info-title{
    font-size: 16px;
    color: #606d82;
    margin-bottom: 20px;
  }
  .info-content{
    width: 470px;
    height: 285px;
    border: 1px solid #c9cdd1;
    background-color: #f2f6fa;
    padding: 40px 30px;
    border-radius: 4px;
  }
  .info-content div{
    margin-bottom: 35px;
    font-size: 14px;
    color: #2D384C;
  }
  .info-btn{
    clear: both;
    padding: 30px 0 0 30px;
  }
  .info-btn .el-button{
    width: 130px;
    height: 44px;
    font-size: 16px;
    background-color: #fd943f;
  }
  .info-btn i{
    margin-right: 9px;
  }
</style>
